package com.tbit.uqbike.webmanager.config;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;

@Slf4j
public class MyContextListener extends HttpServlet implements ServletContextListener {

    private static final long serialVersionUID = 1L;

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        stopRun();
    }

    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        startRun();
    }

    public void startRun() {
        log.error(">>>>>>>>>>>>>>>>服务器开启>>>>>>>>>>>>>>>>>>");
    }

    public void stopRun() {
    }

}
